package com.svndiffdoc;

import java.util.ArrayList;
import java.util.List;

public class DiffView {
    private final List<AnnotatedFileLine> oldFile;
    private final List<AnnotatedFileLine> newFile;

    public DiffView() {
        oldFile = new ArrayList<AnnotatedFileLine>();
        newFile = new ArrayList<AnnotatedFileLine>();
    }

    public void addLine(AnnotatedFileLine oldFileLine, AnnotatedFileLine newFileLine) {
        oldFile.add(oldFileLine);
        newFile.add(newFileLine);
    }

    public List<AnnotatedFileLine> getOldFile() {
        return oldFile;
    }

    public List<AnnotatedFileLine> getNewFile() {
        return newFile;
    }
}
